package com.mk.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.mk.base.service.IBaseService;
import com.mk.model.entity.User;
import com.mk.model.request.UserRequest;

/**
 * @Author: yq
 * @Description:
 * @Date: Created in 3:44 PM 3/13/18
 */
public interface IUserService extends IBaseService<User> {

    User saveUser(UserRequest request);

    Boolean updateUser(UserRequest request);

    Boolean deleteUser(Long id);

    Boolean modifyPassword(UserRequest request);

    User get(Long id);

    User get(String username);

    Page<User> getPage(UserRequest request,Page<User> page);

    Boolean orgCanDel(Long orgId);
}
